package main
import "fmt"

type Student struct{
	Age int
}

type Person struct{
	Age int
}

func main(){
	var s Student = Student{10}
	var p Person = Person{8}
	// s = p
	s = Student(p)	//对象类型转换
	fmt.Println(s)
	fmt.Println(p)
}